From: Kenichi Handa Date: Fri, 3 Oct 2003 11:36:04 +0000 (+0000) Subject: (x_load_font): Clear all members of FONTP before start filling them. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~25312 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5cbd3c00ba3d20d868771ea9ad13f1b791e5036e;p=emacs.git (x_load_font): Clear all members of FONTP before start filling them. --- diff --git a/src/macterm.c b/src/macterm.c index 8c22d047939..fc9b890db18 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -6240,6 +6240,7 @@ x_load_font (f, fontname, size) /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (fontp, sizeof (*fontp)); fontp->font = font; fontp->font_idx = i; fontp->name = (char *) xmalloc (strlen (font->fontname) + 1);